package jhlee42;

import java.util.Scanner;

public class ch02ex111_4 {
	public static void main(String[] args) {
		
		String input_number;
		//String convert_number;
		int number_length;
		
		int select_0 = 0;
		int select_1 = 0;
		int select_tot = 0;
				
		Scanner sc;
		sc = new Scanner(System.in);
		
		System.out.println("1~99 사이의 정수를 입력하시오");
		input_number = sc.next();
	
		number_length = input_number.length();
		
		if (number_length <= 2) {
					
				switch (input_number.charAt(0)) {
				case '3':
					select_0 = 1;
					break;
				case '6':
					select_0 = 1;
					break;
				case '9':
					select_0 = 1;
					break;			
				default: select_0 = 0;
					break;
				}
				
				switch (input_number.charAt(1)) {
				case '3':
					select_1 = 1;
					break;
				case '6':
					select_1 = 1;
					break;
				case '9':
					select_1 = 1;
					break;			
				default: select_1 = 0;
					break;
				}		
				
				select_tot = select_0 + select_1;
				
				
				if (select_tot == 0) {
					System.out.println("묵언수행중");
				}
				else if (select_tot == 1) {
					System.out.println("박수짝......");
				}
				else if (select_tot == 2) {
					System.out.println("박수짝짝...... ......");			
				}
					
				
				select_0 = 0;
				select_1 = 0;
				select_tot = 0;			
		} // if (number_length <= 2)
		
		else {
			System.out.println("1~99 사이의 정수가 아닙니다!!! 님하.. 숫자 모름?");
		}
		
		
		sc.close();
	}
}
